<script lang="ts" setup>
interface Props {
  title?: string
  egTitle?: string
  tip?: string
}
withDefaults(defineProps<Props>(), { title: '', egTitle: '', tip: '' })
</script>

<template>
  <div flex items-center w-full>
    <div class="hight-light" mr-20 />
    <div class="data-title">
      <span color-white
        >{{ title }}
        <span class="text-[18px]" ml-30>{{ tip }}</span>
      </span>
      <div flex items-center class="text-[16px] leading-none">
        <span mr-10 class="color-[#75787E]">{{ egTitle }}</span>
        <div class="eg-hight-light" />
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.hight-light {
  background-color: #45aaff;
  width: 1%;
  height: 100%;
}
.data-title {
  border: 1px solid #16324b;
  border-right: none;
  background: linear-gradient(to right, #45aaff 0%, #07132d 15%, #07132d 100%);
  font-size: 36px;
  line-height: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.eg-hight-light {
  background-color: #47ffec;
  border-radius: 10px;
  width: 5px;
  height: 1em;
}
</style>
